export default $axios => ({
    getProductListByCategoryId(categoryId) {
        return $axios.get('/server/product', {
            params: {
                type: 'getProductListByCategoryId',
                keyword: categoryId
            }
        })
    },
    getProductByProductId(productId) {
        return $axios.get('/server/product', {
            params: {
                type: 'productId',
                keyword: productId
            }
        })
    }
})